package com.achievement.service;

import com.achievement.domain.dto.MedicineDTO;
import com.achievement.domain.entity.MedicineEntity;
import com.achievement.domain.param.MedicineParam;
import com.achievement.domain.vo.MedicineVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.common.api.BusinessApi;
import com.common.core.domain.AjaxResult;

import java.util.HashMap;
import java.util.List;


public interface IMedicineService extends IService<MedicineEntity>, BusinessApi
{
    List<MedicineVO> selectByPage(MedicineParam param);

    List<MedicineVO> getListByConditions(MedicineParam dto);
    MedicineVO getInfoById(String id);


    AjaxResult add(MedicineDTO dto);

    AjaxResult update(MedicineDTO dto);

    boolean batchRemove(List<String> ids);


    List<HashMap<String, Integer>> listStatistics(MedicineParam param);
}
